from django.db import models


# Create your models here.

class Book(models.Model):
    title = models.CharField(max_length=200, null=True)
    author = models.CharField(max_length=100, null=True)
    publication_date = models.DateField(null=True, blank=True)

    def __str__(self):
        return self.title

    class Meta:
        db_table = "books"
        verbose_name = "书籍表"
        verbose_name_plural = verbose_name

